<?php
require_once "lib/filajs.php";
$server = filajs::init();
?>
<html>
<head>
<title>filajs</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Implementing playing cards OOP in JavaScript" />
<meta name="keywords" content="OOP, JavaScript, playing cards, game" />
<meta name="author" content="<?php print AUTHOR_NAME; ?>" />
<meta name="copyright" content="<?php print COPYRIGHT; ?>" />

<link rel="canonical" href="http://www.filajs.net/" />
<link rel="shortcut icon" href="<?php print $server; ?>favicon.ico" />

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>

<?php
filajs::stylesheet("lib/filajs.css");
filajs::stylesheet("filajs.css");
boss();

filajs::javascript("lib/filajs.js");
filajs::javascript("lib/filajsDOM.js");
filajs::javascript("filajs.js");
?>

<script  type="text/javascript">
filajs.serverSet('<?php print $server; ?>');
</script>

</head>
</html>
<?php

function boss() {
	if (file_exists("site/Boss!"))
	filajs::stylesheet("lib/filajsBoss.css");
}
